package cn.edu.xmu.oomall.customer.model.vo;

import cn.edu.xmu.oomall.customer.microservice.vo.SimpleRegionRetVo;

import cn.edu.xmu.oomall.core.model.VoObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
/**
 * @author Jiazhe Yuan
 * @date 2021-12-14 12:22:11
 */
public class AddressRetVo implements VoObject {
    private Long id;
    private SimpleRegionRetVo region;
    private String detail;
    private String consignee;
    private String mobile;
    private Boolean beDefault;

    @Override
    public Object createVo() {
        return new AddressRetVo(id, region, detail, mobile, consignee, beDefault);
    }

    @Override
    public Object createSimpleVo() {
        return new AddressRetVo(id, region, detail, mobile, consignee, beDefault);
    }
}
